<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('商户代付对账文件列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">

            <div class="btn-group-sm" id="toolbar" role="group">
                <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="pay:recordDownload:add">
                    <i class="fa fa-plus"></i> 商户代付对账文件下载
                </a>
                <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="pay:recordDownload:export">
                    <i class="fa fa-download"></i> 导出
                </a>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('pay:recordDownload:edit')}]];
        var removeFlag = [[${@permission.hasPermi('pay:recordDownload:remove')}]];
        var merchCdDatas = [[${@dict.getType('merch_cd')}]];
        var prefix = ctx + "pay/recordDownload";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                modalName: "商户代付对账文件",
                columns: [{
                    checkbox: true
                },
                {
                    field: 'sequenceNo',
                    title: '流水号'
                },
                {
                    field: 'merchCd',
                    title: '商户号',
                    formatter: function(value, row, index) {
                       return $.table.selectDictLabel(merchCdDatas, value);
                    }
                },
                {
                    field: 'addInfo',
                    title: '附加信息'
                },
                {
                    field: 'checkDate',
                    title: '附加信息'
                },
                {
                    field: 'downloadUrl',
                    title: '下载地址地址'
                },
                {
                    field: 'checkType',
                    title: '对账文件类型'
                }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>